/*******************************************************************************************************************
INSTALLATION INSTRUCTIONS

This section contains the step-by-step installation instructions to create the STORET Warehouse Station Home Page which provides the interface between Window to My Environment (WME) and the STORET Central Warehouse application.  There are several noteworthy items regarding the installation:

	Edit the scripts for database usernames, passwords, connect strings, and tablespace names.

	Scripts must run in the order listed to ensure correct software installation.

	Log files are created for each of the Structured Query Languge (SQL) scripts listed in these instructions.  These log files have corresponding names and directory locations as the scripts that create them.  Log files should be checked for errors after each step of the installation process to ensure the installation completes successfully.  

	The installation package is not dependent upon a specific drive letter.  If the installation package is placed on a different drive, replace "C:" with the letter of that drive in the following instructions.

.	If the production environment is UNIX, then copy the Hyper-Text Markup Language (HTML) file using American Standard Code for Information Interchange (ASCII) format, and the Graphic Interchange Format (GIF) files using Binary format.

.	Three assumptions are made regarding the installation:

	--	The STORET Central Warehouse application is running.  
	--	DW_glob_var settings are used.
	--	STORETW tables are available for use by STORETWEB.
 	--	User has knowledge of SQL*Plus.


********************************************************************************************************************/

--1.	Copy the storet_wme directory from the 'Release E2.0.1\software' directory to your C:\ drive.

--2.	Open a SQL*Plus session.

--3.	Set the current directory to c:\storet_wme\application\procedures by opening a file under that directory from within SQL*Plus.  This will ensure log files are created in this directory.  Otherwise, the log files will be created in the \bin directory where SQL*Plus is loaded.

--4.	Create the required STORET database views as storetw.
	@C:\storet_wme\application\procedures\storet_station_wme_vw.sql;
	@C:\storet_wme\application\procedures\storet_station_nv_vw.sql;

--5.	Create the web interface procedures as storetw.
	@C:\storet_wme\application\procedures\DBXML_wme.sql;
	@C:\storet_wme\application\procedures\storet_wme_pkg_spec.sql;
	@C:\storet_wme\application\procedures\storet_wme_pkg.sql;
	@C:\storet_wme\application\procedures\DW_char_select_wme.sql;
	@C:\storet_wme\application\procedures\DW_station_select_wme.sql;
	@C:\storet_wme\application\procedures\DW_bio_result_criteria_station_wme.sql;
	@C:\storet_wme\application\procedures\DW_hab_result_criteria_station_wme.sql;
	@C:\storet_wme\application\procedures\DW_result_criteria_station_wme.sql;

--6.	Copy the application's Help file into the HTML documents directory indicated in the global variables script (i.e., DW_glob_var).
	--C:\storet_wme\application\doc\WME_STORET_Help.html

--7	Copy the application's image files into the images directory indicated in the global variables script (i.e., DW_glob_var).
	--C:\storet_wme\application\images\green.gif
	--C:\storet_wme\application\images\storet_logo.gif

--8.	Grant execute privileges to user storetweb then create synonyms for the procedures as storetw.
	@C:\storet_wme\application\procedures\STORET_WME_GRANTS_AND_SYNS.sql;


